package com.javaweb.blogcite.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javaweb.blogcite.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper extends BaseMapper<Admin> {
    @Select("SELECT * from admin where login_id = #{loginId}")
    Admin selectByLoginId(String loginId);

    @Select("SELECT * from admin where id = #{id}")
    Admin selectById(String id);
}
